import requests

from pet_frame.utils.log_util import logger


class BasePage:

    def send_method(self, req):
        logger.info(f"请求数据为 {req}")
        r = requests.request(**req)
        logger.info(f"响应体为 {r.text}")
        return r
